<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/heavenlydogswallowing-blog/css/categoryBody.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body id="categoryBody">
	<a href="${pageContext.request.contextPath}/jsp/user/welcom.jsp">返回主页</a>
	<div id="categoryDiv">
		<h3>博文分类列表</h3>
		<table>
			<tr>
				<th>博客类别</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
			<s:iterator value="#request.categoryList" status="category">
				<tr>
					<s:a
						href="listBlogByCategoryID?categoryvo.cid=%{cid}&categoryvo.categoryName='1'">
						<td><s:property value="%{categoryName}" /></td>
					</s:a>
					<td><s:property value="%{createTime}" /></td>
					<td><s:a
							href="getCategoryByCid?cid=%{cid}&categoryvo.categoryName='1'">修改</s:a>
						<s:a href="deleteCategory?cid=%{cid}&categoryvo.categoryName='1'">删除</s:a></td>
				</tr>
			</s:iterator>
		</table>
		<a
			href="${pageContext.request.contextPath}/jsp/category/categoryAdd.jsp">新建</a>
	</div>
</body>
</html>